// index.js 
const app = getApp()
Page({
  data: {
    petLevel: 1,
    petAttributes: {
      wisdom: 50,
      health: 70,
      happiness: 60,
      social: 55
    },
    petActivity: 'playing' // 可以是 'playing', 'eating', 'sleeping' 等
  },
  onLoad: function () {
    // 页面加载时的逻辑
  },
  navigateToGallery: function () {
    wx.navigateTo({
      url: '/pages/gallery/gallery'
    })
  },
  navigateToNewTodo: function () {
    wx.navigateTo({
      url: '/pages/newTodo/newTodo'
    })
  },
  navigateToTodoList: function () {
    wx.navigateTo({
      url: '/pages/todoList/todoList'
    })
  },
  navigateToHabitCheck: function () {
    wx.navigateTo({
      url: '/pages/habitCheck/habitCheck'
    })
  },
  navigateToTomatoClock: function () {
    wx.navigateTo({
      url: '/pages/tomatoClock/tomatoClock'
    })
  }
})
